%%
%极限与导数
%例2.2.1
syms x
y = sin(1/x);
limit(y,x,0,'left');
y2 = sin(x)/x;
limit(y2,x,0,'left');
y3 = (1+1/x)^x;
limit(y3,x,inf);
%%
%例2.2.2
a = cunkuan(1);
%%
%例2.2.3
y4 = ((1+x)^(1/x)-exp(1))/x;
limit(y4,x,0);
%%
%2.2.4
y5 = x^2*exp(2*x);
y51 = diff(y5,x,1);
y52 = diff(y5,x,5);
y51 = simplify(y51)
y52 = simplify(y52)
x = 1;
eval(y51)
eval(y52)
%%
%2.2.5
x = [1 5 2 7 9 9];
diff(x)

%%
function a = cunkuan(m)
a = (1+0.1/m)^(10*m);
end






















